home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 102 / CD-ROM 102.iso / aplic / 2sync / 2SyncSetup.exe / base / scripts / DefineSprite_18 / frame_2 / DoAction.as
Encoding:
Text File  |  2002-03-20  |  2.4 KB  |  83 lines

  1. if(drop eq "31")
  2. {
  3.    drop = "";
  4.    if(nodrop eq "1")
  5.    {
  6.       nodrop = "0";
  7.    }
  8.    else
  9.    {
  10.       set("_level0/lib:deletepanel",dragpanel);
  11.       call("_level0/lib:deleteSelection");
  12.    }
  13. }
  14. else
  15. {
  16.    call("_level28/codelib:dragoff");
  17.    dropid = eval(path add ":id");
  18.    if(dropid eq "")
  19.    {
  20.       dropid = eval(path add "/" add barname add ":id");
  21.    }
  22.    if(dropid eq "")
  23.    {
  24.       dropid = eval(path add "/" add barname add ":id");
  25.    }
  26.    dragid = eval("_level20/drag:id");
  27.    drop_date = eval(path add ":date");
  28.    if(drop_date eq "")
  29.    {
  30.       drop_date = eval(path add "/bar:date");
  31.    }
  32.    if(drop_date eq "")
  33.    {
  34.       drop_date = "00:00:0000";
  35.    }
  36.    drag_date = eval("_level20/drag:date");
  37.    if(eval("_level20/drag:date") eq "")
  38.    {
  39.       drag_date = "00:00:0000";
  40.    }
  41.    if(dropid eq dragid and dropid ne "subject" and dropid ne "")
  42.    {
  43.       nodrop = "1";
  44.       set("_level0:halt","0");
  45.    }
  46.    if((drag == "4" or drag == "5") and (drop == "7" or drop == "9") and drag_date ne drop_date)
  47.    {
  48.       nodrop = "0";
  49.    }
  50.    else if((drag == "4" or drag == "5") and (drop == "10" or drop == "12") or drag == "6" and (drop == "7" or drop == "9"))
  51.    {
  52.       nodrop = "0";
  53.    }
  54.    if(nodrop eq "1")
  55.    {
  56.       nodrop = "0";
  57.       set("_level0:halt","0");
  58.    }
  59.    else
  60.    {
  61.       dropbar = eval(path add ":bar");
  62.       if(dropbar eq "")
  63.       {
  64.          dropbar = eval(path add "/bar:bar");
  65.       }
  66.       dragbar = eval("_level20/drag:bar");
  67.       dragstring = eval("_level20/drag:string");
  68.       dropstring = eval(path add "/bar:subject");
  69.       set("_level0/" add droppanel add "_data:target","_level15/" add droppanel add "/" add eval("_level0:" add droppanel add "_module") add "/codelib:drag drop");
  70.       set("_level0/" add droppanel add "_data/out:dd_dragtype",drag);
  71.       set("_level0/" add droppanel add "_data/out:dd_dragid",dragid);
  72.       set("_level0/" add droppanel add "_data/out:dd_droptype",drop);
  73.       set("_level0/" add droppanel add "_data/out:dd_dropid",dropid);
  74.       set("_level0/" add droppanel add "_data:dd_month",drag_date.substr("4","2"));
  75.       set("_level0/" add droppanel add "_data:dd_year",drag_date.substr("7","4"));
  76.       call("_level0/" add droppanel add "_data:senddata");
  77.       fscommand(droppanel add "_update","dd");
  78.    }
  79. }
  80. soundonce = "0";
  81. removeMovieClip("_level20/drag");
  82. stop();
  83.